package com.yisu.auction.api.domain.request.tradePackage;

import com.yisu.auction.api.domain.request.BasePage;

import java.util.Date;

/**
 * author: 赵杰
 * Business Description：交易请求实体
 * createTime：2017/8/18
 */
public class TradeRequest extends BasePage {
    private long prizeId;
    private Integer buyCount;
    private String auctionType;//竞拍方式 1 单一竞拍 2连续竞拍
    private Date currentDate;//当前时间
    private String lastPurchaseTime;//最后购买时间

    public long getPrizeId() {
        return prizeId;
    }

    public void setPrizeId(long prizeId) {
        this.prizeId = prizeId;
    }

    public Integer getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    public String getAuctionType() {
        return auctionType;
    }

    public void setAuctionType(String auctionType) {
        this.auctionType = auctionType;
    }

    public Date getCurrentDate() {
        if (currentDate == null)
            return new Date();
        return currentDate;
    }

    public void setCurrentDate(Date currentDate) {
        this.currentDate = currentDate;
    }

    public String getLastPurchaseTime() {
        return lastPurchaseTime;
    }

    public void setLastPurchaseTime(String lastPurchaseTime) {
        this.lastPurchaseTime = lastPurchaseTime;
    }

    @Override
    public String toString() {
        return "TradeRequest{" +
                "prizeId=" + prizeId +
                ", buyCount=" + buyCount +
                ", auctionType='" + auctionType + '\'' +
                '}';
    }
}
